package cn.xo68.ide.plugin.action;

import cn.xo68.ide.plugin.common.component.StarupApplicationComponent;
import cn.xo68.ide.plugin.ui.form.AboutUsDialog;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 关于我们 动作
 * @author wuxie
 * @date 2018-10-26
 */
public class AboutAction extends AnAction {
    private static Logger logger = LoggerFactory.getLogger(AboutAction.class);

    @Override
    public void actionPerformed(AnActionEvent event) {

        StarupApplicationComponent.getInstance().setLastOperateProject(event.getProject());

        logger.info("打开了关于界面");

        //Project project = event.getProject();
        //Messages.showMessageDialog(project, "Hello world!", "Greeting", Messages.getInformationIcon());
        //AboutDialog.open();
        AboutUsDialog.open();
        //AboutPluginDialog.open();

    }
}
